<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset={DT_CHARSET}"/>
<title>{if $seo_title}{$seo_title}{else}{if $head_title}{$head_title}{$DT[seo_delimiter]}{/if}{$DT[sitename]}{/if}</title>
<meta name="keywords" content="{$head_keywords}"/>
<meta name="description" content="{$head_description}"/>
<meta name="generator" content="Destoon B2B,www.destoon.com"/>
<meta http-equiv="x-ua-compatible" content="ie=7"/>
<link rel="stylesheet" type="text/css" href="{DT_SKIN}message.css"/>
<link rel="shortcut icon" href="{DT_PATH}favicon.ico"/>
<link rel="bookmark" href="{DT_PATH}favicon.ico"/>
<script type="text/javascript" src="{DT_PATH}lang/{DT_LANG}/lang.js"></script>
<script type="text/javascript" src="{DT_PATH}file/script/config.js"></script>
<script type="text/javascript" src="{DT_PATH}file/script/common.js"></script>
<script type="text/javascript" src="{DT_PATH}file/script/page.js"></script>
<script type="text/javascript">
if(parent.location == window.location) window.location='{$linkurl}';
</script>
</head>
<body oncontextmenu="return false">
<div id="destoon_message">
<iframe src="" name="send" id="send" style="display:none;"></iframe>
<form method="post" action="{$MOD[linkurl]}message.php" target="send" id="dform" onsubmit="return check();">
<input type="hidden" name="forward" value="{$forward}"/>
<input type="hidden" name="itemid" value="{$itemid}"/>
<table width="100%" cellpadding="8" cellspacing="1" bgcolor="#C5D7ED">
{if $error}
<tr>
<td bgcolor="#FFFEBF" align="right"><strong>提示信息</strong>：</td>
<td bgcolor="#FFFEBF">{$error}</td>
</tr>
{/if}
<tr>
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 留言主题：</td>
<td bgcolor="#FFFFFF"><input type="text" name="title" value="{$title}" size="60" id="title"/><br/><span class="f_gray">建议您修改主题，吸引对方注意,得到优先回复!</span> <br/><span class="f_red" id="dtitle"></span></td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">快捷提问：</td>
<td bgcolor="#FFFFFF">
<select onchange="if(this.value)$('content').value+=this.value+'\n';">
<option value="">请选择常用问题</option>
{loop $iask $v}
<option value="{$v}">{$v}</option>
{/loop}
</select>
<span class="f_gray">(不用打字 “快捷提问”帮您忙！) </span>
</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 主要内容：</td>
<td bgcolor="#FFFFFF"><textarea rows="6" cols="70" name="content" id="content" onfocus="H();">{$content}</textarea><br/>
我希望在 {dcalendar('date', $date)} 日前回复 <span class="f_red" id="dcontent"></span>
</td>
</tr>
{if $_userid}
<tr>
<td bgcolor="#F1F7FC" align="right"><strong>联系方式：</strong></td>
<td bgcolor="#F1F7FC">&nbsp; </td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">公司：</td>
<td bgcolor="#FFFFFF">{$company}</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">姓名：</td>
<td bgcolor="#FFFFFF">{$truename}</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">电话：</td>
<td bgcolor="#FFFFFF">{$telephone}</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">邮件：</td>
<td bgcolor="#FFFFFF">{$email}</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">QQ：</td>
<td bgcolor="#FFFFFF">{$qq}</td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">MSN：</td>
<td bgcolor="#FFFFFF">{$msn}</td>
</tr>
{else}
<tr>
<td bgcolor="#F1F7FC" align="right"><strong>联系方式：</strong></td>
<td bgcolor="#F1F7FC">还不是会员？请 <a href="{$MODULE[2][linkurl]}{$DT[file_register]}" class="f_b" target="_top">注册</a> 或 请留下您的联系方式&nbsp;&nbsp;已经是会员？请 <a href="{$MODULE[2][linkurl]}{$DT[file_login]}" class="f_b" target="_top">登录</a></td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">公司</td>
<td bgcolor="#FFFFFF"><input type="text" name="company" size="30" id="company"/></td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 姓名</td>
<td bgcolor="#FFFFFF"><input type="text" name="truename" size="30" id="truename"/> <span class="f_red" id="dtruename"></span></td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 电话</td>
<td bgcolor="#FFFFFF"><input type="text" name="telephone" size="30" id="telephone"/> <span class="f_red" id="dtelephone"></span></td>
</tr>
<tr>
<td bgcolor="#F1F7FC" align="right">邮箱</td>
<td bgcolor="#FFFFFF"><input type="text" name="email" size="30" id="email"/> <span class="f_red" id="demail"></span></td>
</tr>
{if $DT[im_qq]}
<tr>
<td bgcolor="#F1F7FC" align="right">QQ </td>
<td bgcolor="#FFFFFF"><input type="text" size="20" name="qq" id="qq"/></td>
</tr>
{/if}
{if $DT[im_ali]}
<tr>
<td bgcolor="#F1F7FC" align="right">阿里旺旺 </td>
<td bgcolor="#FFFFFF"><input type="text" size="20" name="ali" id="ali"/></td>
</tr>
{/if}
{if $DT[im_msn]}
<tr>
<td bgcolor="#F1F7FC" align="right">MSN </td>
<td bgcolor="#FFFFFF"><input type="text" size="30" name="msn" id="msn"/></td>
</tr>
{/if}
{if $DT[im_skype]}
<tr>
<td bgcolor="#F1F7FC" align="right">Skype </td>
<td bgcolor="#FFFFFF"><input type="text" size="20" name="skype" id="skype"/></td>
</tr>
{/if}
{/if}
{if $need_captcha}
<tr>
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 验证码：</td>
<td bgcolor="#FFFFFF">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
</tr>
{/if}
{if $need_question}
<tr onmouseout="H();">
<td bgcolor="#F1F7FC" align="right"><span class="f_red">*</span> 验证问题：</td>
<td bgcolor="#FFFFFF">{template 'question', 'chip'} <span id="danswer" class="f_red"></span></td>
</tr>
{/if}
{if $_userid && $DT[sms]}
<tr>
<td bgcolor="#F1F7FC" align="right">短信通知：</td>
<td bgcolor="#FFFFFF"><input type="checkbox" name="sendsms" value="1"/> 发送短信通知至接收人手机 (<a href="{$MODULE[2][linkurl]}sms.php" target="_blank">我的可用短信 <strong class="f_blue">{$_sms}</strong> 条</a>)</td>
</tr>
{/if}
<tr>
<td bgcolor="#F1F7FC"> </td>
<td bgcolor="#FFFFFF">
<input type="submit" name="submit" value=" 提交 "{if $error} disabled{/if}/>&nbsp;
<input type="reset" name="reset" value=" 重写 "/>
{if $MG[message_limit]}
&nbsp;&nbsp;今日可发 <span class="f_b f_red">{$MG[message_limit]}</span> 次
&nbsp;&nbsp;当前已发 <span class="f_b">{$limit_used}</span> 次
&nbsp;&nbsp;还可以发 <span class="f_b f_blue">{$limit_free}</span> 次
{/if}
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
function check() {
	{if $error}
	alert('{$error}');
	return false;
	{/if}
	var l;
	var f;
	f = 'title';
	l = $(f).value.length;
	if(l < 5 || l > 50) {
		Dmsg('主题应为5-50字，当前已输入'+l+'字', f);
		return false;
	}
	f = 'content';
	l = $(f).value.length;
	if(l < 10 || l > 2000) {
		Dmsg('内容应为10-2000字，当前已输入'+l+'字', f);
		return false;
	}
	{if !$_userid}
	f = 'truename';
	l = $(f).value.length;
	if(l < 2) {
		Dmsg('请填写联系人', f);
		return false;
	}
	f = 'telephone';
	l = $(f).value.length;
	if(l < 7) {
		Dmsg('请填写联系电话', f);
		return false;
	}
	{/if}
	{if $need_captcha}
	f = 'captcha';
	l = $(f).value;
	if(!is_captcha(l)) {
		Dmsg('请填写正确的验证码', f);
		return false;
	}
	if($('c'+f).innerHTML.indexOf('error') != -1) {
		$(f).focus();
		return false;
	}
	{/if}
	{if $need_question}
	f = 'answer';
	l = $(f).value.length;
	if(l < 1) {
		Dmsg('请填写验证问题', f);
		return false;
	}
	if($('c'+f).innerHTML.indexOf('error') != -1) {
		$(f).focus();
		return false;
	}
	{/if}
}
function H() {
	try{parent.$('destoon_message').style.height = $('destoon_message').scrollHeight+'px';}
	catch(e){}
}
H();
</script>
</body>
</html>